package com.albaba.designpattern.flyweight.text_001;

/**
 * @Description: 不共享的享元对象
 * @Author zx
 * @Date 2025/2/21 16:50
 * @Version 1.0
 */
public class UnsharedFlyweight extends Flyweight{

    private String inState;

    public UnsharedFlyweight(String state) {
        this.inState = state;
    }

    @Override
    public void operation(String state) {
        System.out.println("具体享元：" + inState + "，非享元：" + state);

    }
}
